#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>

void swap(int *x, int *y)
{
	int z = 0;
	z = *x;
	*x = *y;
	*y = z;
}

int main()
{
	int num1 = 0;
	int num2 = 0;
	scanf("%d", &num1);
	scanf("%d", &num2);

	swap(&num1, &num2);

	printf("%d %d", num1, num2);

	return 0;
}